package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_gateway_route
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_gateway_route")
public class SysGatewayRoute implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 36)
    private String id;
    
    /**
     * 路由ID
     */
    @Column(name = "router_id", length = 50)
    private String routerId;
    
    /**
     * 服务名
     */
    @Column(name = "name", length = 32)
    private String name;
    
    /**
     * 服务地址
     */
    @Column(name = "uri", length = 32)
    private String uri;
    
    /**
     * 断言
     */
    @Column(name = "predicates", length = 65535)
    private String predicates;
    
    /**
     * 过滤器
     */
    @Column(name = "filters", length = 65535)
    private String filters;
    
    /**
     * 是否重试:0-否 1-是
     */
    @Column(name = "retryable")
    private Integer retryable;
    
    /**
     * 是否忽略前缀0-否 1-是
     */
    @Column(name = "strip_prefix")
    private Integer stripPrefix;
    
    /**
     * 是否为保留数据:0-否 1-是
     */
    @Column(name = "persistable")
    private Integer persistable;
    
    /**
     * 是否在接口文档中展示:0-否 1-是
     */
    @Column(name = "show_api")
    private Integer showApi;
    
    /**
     * 状态:0-无效 1-有效
     */
    @Column(name = "status")
    private Integer status;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", length = 50)
    private String createBy;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人
     */
    @Column(name = "update_by", length = 50)
    private String updateBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 所属部门
     */
    @Column(name = "sys_org_code", length = 64)
    private String sysOrgCode;
    
    @Override
    public String toString() {
        return "SysGatewayRoute{" +
            "id=" + id +
            ", routerId=" + routerId +
            ", name=" + name +
            ", uri=" + uri +
            ", predicates=" + predicates +
            ", filters=" + filters +
            ", retryable=" + retryable +
            ", stripPrefix=" + stripPrefix +
            ", persistable=" + persistable +
            ", showApi=" + showApi +
            ", status=" + status +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", sysOrgCode=" + sysOrgCode +
        '}';
    }
} 